export interface ResponseData {
  code: number
  message: string
  ok: boolean
  // data: dataCateType
}

export interface CategoryObj {
  id: number | string
  //   createTime: string
  //   updateTime: string
  name: string
  category1Id?: string | number
  category2Id?: string | number
}

// 定义接口继承
export interface CateResponseData extends ResponseData {
  data: CategoryObj[]
}

export interface AttrValueObj {
  attrId?: number
  id?: number
  valueName: string
  flag?: boolean
}

export interface AttrObj {
  attrName: string
  categoryId: number | string
  categoryLevel: number
  id?: number
  attrValueList: AttrValueObj[]
}

export interface AttrResponse extends ResponseData {
  data: AttrObj[]
}
